<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #box1,#box2,#box3 {
            width: 150px;
            height: 150px;
            background-color: #ffff00;
            display: inline-block;
            margin-right: 20px;
        }
    </style>
	<script src="../jquery-3.3.1.min.js"></script>
    <script>
        $(function(){
            $("#btn1").click(function(){
                $("#box1").show();
                $("#box2").slideDown();
                $("#box3").fadeIn();
            });
            $("#btn2").click(function(){
                $("#box1").hide();
                $("#box2").slideUp();
                $("#box3").fadeOut();
            });
            $("#btn3").click(function(){
                $("#box1").toggle();
                $("#box2").slideToggle();
                $("#box3").fadeToggle();
            });
        });
    </script>   
</head>
<body>
    <input type="button" value="显示" id="btn1">
    <input type="button" value="消失" id="btn2">
    <input type="button" value="切换" id="btn3">
    <div id="box">
        <div id="box1"></div>
        <div id="box2"></div>
        <div id="box3"></div>
    </div>  
</body>
</html>